﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ChangeLayout.aspx.cs" Inherits="FrontEnd_Dialog_ChangeLayout" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript">
        function initDialog() {
            $("#theme-list").selectable();
        };

        function saveChange() {
            var layout;// = "3A";
            var path = '<%=ResolveUrl(Util.ServerPath.CSS) + "Layout/"%>';
            // Get selected value.
            $(".ui-selected").each(function() {
                layout = $(this).children(".value").html();
            });
            
            // The ajax function to save information here.

            // Save value.
            $("#layout").attr("href", path + layout + ".css");
        };
    </script>
</head>
<body>

<ul id="theme-list" class="selectable">
    <li class="img-item">
        <div class="info">
            <img class="img-layout" src="<%=ResolveUrl(Util.ServerPath.CSS + "Images/Layout/3A.jpg")%>" /><br />
            3 Cột<br />Nhỏ - Lớn - Nhỏ
        </div>
        <div class="value">3A</div>
    </li>
    <li class="img-item">
        <div class="info">
            <img class="img-layout" src="<%=ResolveUrl(Util.ServerPath.CSS + "Images/Layout/3B.jpg")%>" /><br />
            3 Cột<br />Nhỏ - Nhỏ - Lớn
        </div>
        <div class="value">3B</div>
    </li>
    <li class="img-item">
        <div class="info">
            <img class="img-layout" src="<%=ResolveUrl(Util.ServerPath.CSS + "Images/Layout/3C.jpg")%>" /><br />
            3 Cột<br />Lớn - Nhỏ - Nhỏ
        </div>
        <div class="value">3C</div>
    </li>
    <li class="img-item">
        <div class="info">
            <img class="img-layout" src="<%=ResolveUrl(Util.ServerPath.CSS + "Images/Layout/2B.jpg")%>" /><br />
            2 Cột<br />Lớn - Nhỏ
        </div>
        <div class="value">2A</div>
    </li>
    <li class="img-item">
        <div class="info">
            <img class="img-layout" src="<%=ResolveUrl(Util.ServerPath.CSS + "Images/Layout/2A.jpg")%>" /><br />
            2 Cột<br />Nhỏ - Lớn
        </div>
        <div class="value">2B</div>
    </li>
</ul>

</body>
</html>
